<?php

namespace app\admin\controller\permission;

use app\admin\logic\permission\AdminLogic;
use support\Request;
use DI\Attribute\Inject;
use support\Response;
use Webman\Exception\BusinessException;

use app\server\JsonServer;
class AdminController
{

    #[Inject]
    protected AdminLogic $logic;

    /**
     * @param Request $request
     * @return array|Response
     */
    public function getAdmin(Request $request) : Response
    {
        return  JsonServer::success(data:$this->logic->getAdmin($request));
    }
}